package a;

public class MyRunnable implements Runnable{
    @Override
    public void run() {
        for (int i = 0; i < 100; i++) {

            Thread thread = Thread.currentThread();
            String name = thread.getName();
            System.out.println("当前线程"+name+" "+i);
        }
    }
}
